package com.kfdx.dc.system.service;

import com.kfdx.dc.system.domain.SysFileEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;

public interface ILocalUploadService {
    SysFileEntity uploadSingleFile(MultipartFile file, String type);

    List<SysFileEntity> uploadMultiFile(MultipartFile[] multipartFiles, String type);

    InputStream downloadFile(HttpServletResponse response, String filePath);

    String getFilePathByFileId(String fileId);


    InputStream downloadFileById(HttpServletResponse response, Long fileId);

    SysFileEntity uploadSingleFileNew(MultipartFile file, String type);
}
